package com.dhcc.ws.webservice.service.weather;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

import org.apache.cxf.annotations.WSDLDocumentation;
import org.apache.cxf.annotations.WSDLDocumentationCollection;

/**
* <p>标题: WeatherInterface.java</p>
* <p>业务描述:健康管理平台</p>
* <p>公司:东华软件股份公司</p>
* <p>版权:dhcc2013</p>
* @author 胡凯
* @date 2019年12月10日
* @version V1.0 
*/
@WebService(targetNamespace = "http://WebXml.com.cn/")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
@WSDLDocumentationCollection(
    {
        @WSDLDocumentation("这个一个测试接口"),
        @WSDLDocumentation(value = "这个一个测试接口-顶部显示信息",
                           placement = WSDLDocumentation.Placement.TOP),
        @WSDLDocumentation(value = "这个一个测试接口-binding显示信息 ",
                           placement = WSDLDocumentation.Placement.BINDING)
    }
)
public interface WeatherInterface {

	@WSDLDocumentation( "获取省份列表接口方法")
	@WebMethod(operationName="getPros")
//	@WebResult(name="proResponse")
	@RequestWrapper(localName = "getPro", targetNamespace = "http://WebXml.com.cn")
    @ResponseWrapper(localName = "proResponse", targetNamespace = "http://WebXml.com.cn")
	public String getPro(@WebParam(name="theCountry")String country);
	
	@WSDLDocumentation( "获取城市列表接口方法")
	@WebMethod(operationName="getCitys")
	@WebResult(name="cityResponse")
	public String getCity(@WebParam(targetNamespace = "http://WebXml.com.cn1/",name="theProvice")String provice);
	
	@WSDLDocumentation( "测试天气的接口方法")
	@WebResult(name="weaResponse")
	@WebMethod(operationName ="getWeathers")
	public String getWeather(@WebParam(targetNamespace = "http://WebXml.com.cn/",name="proviceName")String proviceName,@WebParam(targetNamespace = "http://WebXml.com.cn/",name="cityName")String cityName);
}
